namespace Cos.Core.NHibernate.Tests.Values
{
    using FluentNHibernate.Utils;

    public class ReferenceProperty<T, TProperty> : Cos.Core.NHibernate.Tests.Values.Property<T, TProperty>
    {
        public ReferenceProperty(Accessor property, TProperty propertyValue) : base(property, propertyValue)
        {}

        public override void HasRegistered(Tests.PersistenceSpecification<T> specification)
        {
            specification.TransactionalSave(Value);
        }
    }
}